# Maintainer: Willow Barraco <contact@willowbarraco.fr>
pkgname=clapper
pkgver=0.6.1
pkgrel=0
pkgdesc="Modern media player designed for simplicity and ease of use"
url="https://github.com/Rafostar/clapper"
arch="all"
license="GPL-3.0-or-later"
makedepends="
	desktop-file-utils
	gobject-introspection-dev
	gst-plugins-base-dev
	gstreamer-dev
	gtk4.0-dev
	libadwaita-dev
	libmicrodns-dev
	libsoup3-dev
	meson
"
subpackages="$pkgname-dev $pkgname-lang $pkgname-libs"
source="$pkgname-$pkgver.tar.gz::https://github.com/Rafostar/clapper/archive/refs/tags/$pkgver.tar.gz"
options="!check" # No tests
ldpath="/usr/lib/gstreamer-1.0/"

build() {
	abuild-meson -Db_lto=true -Dintrospection=enabled . output
	meson compile -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

libs() {
	default_libs
	amove usr/lib/girepository-1.0 usr/lib/gstreamer-1.0
}

sha512sums="
46b3007740c0e8f66bd3268ffd9c29cbdd41078f28cbf862cc90000ebd121ebd39eb65c464cadd3a95d0a12bf2b3c30bb9062cd622563c9d07bad638d885070f  clapper-0.6.1.tar.gz
"
